From: Paul Donald Date: Mon, 4 Dec 2023 01:38:32 +0000 (+0100) Subject: Merge pull request #5520 from acooler15/luci-lib-docker X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=6bcdaaf4b1170252274680b5326b6a5e2eb41727;p=project%2Fluci.git Merge pull request #5520 from acooler15/luci-lib-docker luci-lib-docker: fix chunked decode (cherry picked from commit 4ade6bd04c6fb29203ade9cb44ecd37ab465a2d6) --- diff --git a/collections/luci-lib-docker/luasrc/docker.lua b/collections/luci-lib-docker/luasrc/docker.lua index cd9bf132d1..346b0ef235 100644 --- a/collections/luci-lib-docker/luasrc/docker.lua +++ b/collections/luci-lib-docker/luasrc/docker.lua @@ -21,7 +21,7 @@ local chunksource = function(sock, buffer) local output local _, endp, count = buffer:find("^([0-9a-fA-F]+)\r\n") - if not count then + while not count do local newblock, code = sock:recv(1024) if not newblock then return nil, code